package com.xebia.eshop.utils.jsonclient;

import org.codehaus.jackson.jaxrs.JacksonJsonProvider;

import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.config.ClientConfig;
import com.sun.jersey.api.client.config.DefaultClientConfig;

public class JSonClient {
	private static ClientConfig CONFIG;
	static {
		CONFIG = new DefaultClientConfig();
		CONFIG.getClasses().add(JacksonJsonProvider.class);
	}
	public static final Client CLIENT = Client.create(CONFIG);
	
	
//	private static JSonClient INSTANCE = new JSonClient();
	
//	private JSonClient() {
//		ClientConfig cfg = new DefaultClientConfig();
//		cfg.getClasses().add(JacksonJsonProvider.class);
//		client = Client.create(cfg);
//	}
	
//	public static JSonClient getInstance() {
//		return  INSTANCE;
//	}
//
//	public Client getClient() {
//		return client;
//	}
}
